﻿using Nutilities.Net;

namespace Auktionshuset___Server
{
    public class User : IBinaryWriteable
    {
        public string Username { get; set; }
        public string Password { get; set; }
        public string Alias { get; set; }

        public bool Active { get; set; }

        public User(string username, string password, string alias)
        {
            Username = username;
            Password = password;
            Alias = alias;
        }

        public void WriteTo(System.IO.BinaryWriter writer)
        {
            writer.Write(Username);
            writer.Write(Alias);
        }
    }
}
